package entity;

import java.time.LocalTime;

public class Word {

    //当前单词所在行号
    private int line;

    //单词内容
    private String word;

    //单词编码
    private int code;

    public Word(int line, String word, int code) {
        this.line = line;
        this.word = word;
        this.code = code;
        LocalTime.now();
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Word{" +
                "line=" + line +
                ", word='" + word + '\'' +
                ", code=" + code +
                '}';
    }
}
